import { observable , action } from 'mobx';

class Homes {
    @observable
    protected hidden: boolean = false;

    @observable
    protected selectedTab: string = "Funny";

    @action
    protected setHidden = (mark: boolean): void => {
        this.hidden = mark;
    }

    @action
    protected setTab = (tab: string): void => {
        this.selectedTab = tab;
    }
}

export const Home = new Homes();